package com.cherrypt.api.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cherrypt.api.model.dataobject.Log;
import org.apache.ibatis.annotations.Insert;

/**
 * @author intent
 * @date 2019/7/22 22:18
 * @about <link href='http://zzyitj.xyz/'/>
 */
public interface LogDao extends BaseMapper<Log> {
    @Insert(value = "INSERT INTO t_log (uid, event, description, ip, created) VALUES (#{uid}, #{event}, #{description}, INET6_ATON(#{ip}), #{created})")
    int insertLog(Log log);
}
